import request from "@/utils/request.js";

// 可以和后端代码不那么严丝合缝的对应
// 获取所用用户数据
const basePath = "/registration"
// 添加用户
export function insert(data) {
    return request({
        url: basePath,
        method: "post",
        data: data
    });
}

// 获取数据
export function getData() {
    return request({
        url: basePath,
        method: "get",
    });
}
//获取对应科室的值班医生
export function getDoctor(data){
    return request({
        url: basePath+"/dept",
        method: "put",
        data: data
    });
}

//确认付款
export function pay(data){
    return request({
        url: basePath+"/pay",
        method: "put",
        data: data
    });
}